package com.zp.self.module.level_5_设计模式.行为型模式.Ⅱ_策略模式;

/**
 * @author ：by Zeng Peng
 * @date ：Created 2022/7/2 6:13
 * @description ：
 */
public class Client {
    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.SalesManShow();
        System.out.println("-------- 华丽的分割线 --------");

        salesMan.setStrategy(new StrategyB());
        salesMan.SalesManShow();
        System.out.println("-------- 华丽的分割线 --------");

        salesMan.setStrategy(new StrategyC());
        salesMan.SalesManShow();
    }
}
